import { EntityObjectFactory } from './../entityObjectFactory';
var EntityObject = EntityObjectFactory.GetEntityObjectType();

interface EmployeeExtended {
    braceletNo:string;
}


interface EmployeeUser {
    password: string;
    registeredTime: string;
    sex: string;
    id: string;
    name: string; 
    mobile: string;
    pic:string;
}

interface EmployeeRole {
    id: string;
    name: string;
    desc: string;
    checked: boolean
}

export class Employee extends EntityObject<Employee>{
    constructor(ctx?) { super(ctx); }
    account: string;
    employeeNumber: string;
    joinTime: Date;
    note: string;
    password: string;
    storeId: string;
    user: EmployeeUser;
    roles: Array<EmployeeRole>;
    extended:EmployeeExtended;
    id: string;
    toString(): string { return "employee"; }
}